<#macro ruleView>
<div class="modal" id="rule-modal-show" tabindex="-1" role="dialog" aria-labelledby="rule-modalLabel" aria-hidden="true">
  <div id="demo-main-show" class="modal-dialog" style="width:600px" >
    <div class="modal-content" >
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="ruel-modalLabel">规则</h4>
      </div>
      <div class="modal-body" id="rule-modal-show-body" style="padding:0;border-radius: 6px;background:#eeeeee">
      		<pre id="ruleContent-show" style="min-height:300px;max-height:400px;overflow-y: auto;">
      		</pre>
      </div>
    </div>
  </div>
</div>

<script type="text/javascript">
var ruleView={
	show:function(content){
		$('#ruleContent-show').text(content);
		if(content)
			$('#rule-modal-show').modal('show');
	}
};


</script>

</#macro>